/*
 * oledDriver.h
 *
 * Created: 24.09.2012 10:23:16
 *  Author: vegardvo
 */ 


#ifndef OLEDDRIVER_H_
#define OLEDDRIVER_H_

#define OLED_COMMAND_ADDRESS 0x1000;
#define OLED_DATA_ADDRESS 0x1200;


struct oled_WritePosition
{
	int page;
	int segment;
	};
	

void oledDriver_write_command(char command);

void oledDriver_select_page(int page);
void oledDriver_select_segment(int segment);
void oledDriver_set_position(int line, int column);

void oledDriver_clear_screen();
void oledDriver_clear_line(int line);

void oledDriver_write_data(const char data);
void oledDriver_write_char(char character);
void oledDriver_write_inverted_char(char character);
void oledDriver_write_string(char* string, int inverted, int centered);

void oledDriver_init();


#endif /* OLEDDRIVER_H_ */